package net.qhzw.vip.qiyu.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/***
 * 已销售订单
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SoldOrderExcelDto implements Serializable {
    private static final long serialVersionUID = -1L;

    /*
    String[] hearder = { "手机", "",
     "商品名称", "数量", "订单应付", "订单运费", "订单实付"};
     */

    @Excel(name = "订购流水号", width = 21)
    private String orderNumber;

    @Excel(name = "下单时间", width = 21, exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "收货人", width = 10)
    private String receiver;

    @Excel(name = "手机", width = 12.5)
    private String mobile;

    @Excel(name = "收货地址", width = 45)
    private String addrInfo;

//    @ExcelCollection(name = "产品名称")
//    private String prodName;

//    @ExcelCollection(name = "购物车产品个数")
//    private Integer prodCount;

    @ExcelCollection(name = "订单信息", orderNum = "8")
    private List<OrderItemExcelDto> orderItemExcelDto;


    @Excel(name = "总值", width = 10)
    private Double total;

    @Excel(name = "订单运费", width = 10)
    private Double freightAmount;

    @Excel(name = "实际总值", width = 10)
    private Double actualTotal;

}
